package cn.edu.scau.cmi.liangzijian.client;

import cn.edu.scau.cmi.liangzijian.builder.Chef1;
import cn.edu.scau.cmi.liangzijian.builder.Chef2;
import cn.edu.scau.cmi.liangzijian.builder.Manager;
import cn.edu.scau.cmi.liangzijian.builder.Pizza;

public class BuilderClient {
	public static void main(String[] args) {
		Chef1 chef1 = new Chef1();
		
		Manager manager = new Manager(chef1);
		Pizza pizza = manager.construct();
		pizza.show();
	
		Chef2 chef2 = new Chef2();
		manager.setChef(chef2);
		pizza = manager.construct();
		pizza.show();
	}
}
